<%-- Composition Page: forum.jsp --%>

<%@page import="nl.hva.web.mvcwebapp.controllers.UserController"%>
<%
//Meta
    request.setAttribute("css", request.getContextPath() + "/style.css"); //Generic path to CSS
    request.setAttribute("title", "Three2Learn - Forums"); //Page title
    request.setAttribute("background", "linen"); //Background types; linen, chalk, plain
    request.setAttribute("color", "orange"); //Color types; red, orange, green
//Header Content
    if (UserController.userAccountType != 0) {
        request.setAttribute("header", "header_LoggedInUser.jsp");
    } else {
        request.setAttribute("header", "header.jsp");
    }
    
//Body Content
    request.setAttribute("body", "/WEB-INF/body/forum/forum-body.jsp");
//Footer
    request.setAttribute("footer", "footer.jsp"); //Footer Content
//Widgets
    request.setAttribute("sidebar_first", "/WEB-INF/widgets/popular-courses.jsp"); //Sidebar Content
    request.setAttribute("sidebar_second", "/WEB-INF/widgets/latest-news.jsp"); //Sidebar Content
%>


<%-- Include abstract layout --%> 
<jsp:include page="/WEB-INF/templates/sidebar-right.jsp" />
<%-- Change this value to either sidebar-right.jsp or sidebar-left.jsp --%>
<%-- TODO; loading the value of which layout to include from database --%>